package com.example.nacos.config;

import lombok.extern.slf4j.Slf4j;
import org.springframework.web.bind.annotation.ControllerAdvice;
import org.springframework.web.bind.annotation.ExceptionHandler;

@Slf4j
@ControllerAdvice
public class GolbalExceptionHandler {
    @ExceptionHandler(RuntimeException.class)
    public Object handleJeecgBootException(RuntimeException e){
        log.error(e.getMessage(), e);
        return new Object();
    }
}
